package chapter_twentyFour.text354;

/**
 * Data time:2021/11/22 16:16
 * StudentID:2019112118
 * Author:hgw
 * Description: 客户端测试
 */
public class Client {

    public static void main(String[] args) {
        MovieTicket mt = new MovieTicket();
        double originalPrice = 60.0;
        double currentPrice;
        mt.setPrice(originalPrice);
        System.out.println("原始价格为：" + originalPrice);
        System.out.println("------------------");

        Discount discount;
        discount = new StudentDiscount();

        currentPrice = mt.getPrice();
        System.out.println("折扣价为：" + currentPrice);
    }

}
